summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(master-data)/bid-projects
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/bid-projects')
-rw-r--r--app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx18
-rw-r--r--app/[lng]/evcp/(evcp)/(master-data)/bid-projects/page.tsx4
2 files changed, 16 insertions, 6 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx b/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx
index 9c142df1..5994d3f9 100644
--- a/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx
+++ b/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/layout.tsx
@@ -2,19 +2,25 @@ import * as React from "react"
import { BidProjectsContainer } from "@/components/bidding-projects/bid-projects-container"
import { Shell } from "@/components/shell"
import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"
+import { useTranslation } from "@/i18n"
// Layout 컴포넌트는 서버 컴포넌트입니다
-export default function BidProjectsLayout({
+export default async function BidProjectsLayout({
+ params,
children,
}: {
+ params: Promise<{ lng: string }>
children: React.ReactNode
}) {
+ const { lng } = await params
+ const { t } = await useTranslation(lng, 'menu')
+
// 프로젝트 타입 정의
const projectTypes = [
- { id: "all", name: "전체" },
- { id: "SHIP", name: "조선" },
- { id: "TOP", name: "해양 TOP" },
- { id: "HULL", name: "해양 HULL" },
+ { id: "all", name: t('common.all') || "전체" },
+ { id: "SHIP", name: t('groups.shipbuilding') },
+ { id: "TOP", name: `${t('groups.offshore')} TOP` },
+ { id: "HULL", name: `${t('groups.offshore')} HULL` },
]
return (
@@ -30,7 +36,7 @@ export default function BidProjectsLayout({
/>
}
>
- <BidProjectsContainer projectTypes={projectTypes}>
+ <BidProjectsContainer lng={lng} projectTypes={projectTypes}>
{children}
</BidProjectsContainer>
</React.Suspense>
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/page.tsx b/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/page.tsx
index e98d391b..92879fe9 100644
--- a/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/page.tsx
+++ b/app/[lng]/evcp/(evcp)/(master-data)/bid-projects/page.tsx
@@ -9,10 +9,14 @@ import { BidProjectsTable } from "@/lib/bidding-projects/table/projects-table"
import type { Filter } from "@/types/table"
interface IndexPageProps {
+ params: Promise<{ lng: string }>
searchParams: Promise<SearchParams>
}
export default async function IndexPage(props: IndexPageProps) {
+ const params = await props.params
+ const { lng } = params
+
const searchParams = await props.searchParams
const search = searchParamsBidProjectsCache.parse(searchParams)